<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/style/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/aridialog/jquery.artDialog.js"></script>
<script type="text/javascript" src="__PUBLIC__/aridialog/iframeTools.js"></script>
</head>

<body id="page">
<h2 class="tag">当前位置: 栏目管理 &gt; 栏目列表</h2>
<div class="box">
  <div class="page_menu"><a href="__URL__">栏目列表</a></div>
  <div class="infobox">
    <table border="1" align="center" width="100%" cellpadding="3" cellspacing="1" class="table_b">
      <tr class="table_style_even">
        <th align="center" width="5%">ID</th>
        <th align="center" width="25%">栏目名称</th>
        <th align="center" width="7%">排序</th>
        <th align="center" width="12%">模型</th>
        <th align="center" width="18%">录入时间</th>
        <th align="center" width="10%">前台显示</th>
        <th align="center" width="15%">管理操作</th>
      </tr>
      {loop $cat $key $vo}
      <tr onmouseover=this.bgColor='#ecf2f7'; onmouseout=this.bgColor='#fff';  bgcolor='#fff'>
        <td align="center">{$vo['cid']}</td>
        <td align="left" style="padding-left:20px;">{$vo['cname']}</td>
        <td align="left" style="padding-left:20px;"><input type="text" name="sort" class="sortinput" onblur="sorts({$vo['cid']},$(this).val())" value="{$vo['sort']}"/></td>
        <td align="center">{$vo['mname']}</td>
        <td align="center">{date('Y-m-d H:i:s',$vo['addtime'])}</td>
        <td align="center">{if $vo['isshow']==0}显示{else}<font color="#FF0000">隐藏</font>{/if}</td>
        <td align="center"><a href="__URL__/{$vo['model']}edit-{$vo['cid']}.html" class="icon-edit">编辑</a>&nbsp;&nbsp;<a href="__URL__/{$vo['model']}del-{$vo['cid']}.html" onclick='return confirm("真的要删除?不可恢复!");' class="icon-del">删除</a></td>
      </tr>
      {/loop}
    </table>
  </div>
</div>
<script>
function sorts(cid,num)
{
$.post('__URL__/sort',{cid:cid,num:num});
}
</script>
</body>
</html>